-- GENERATED SPELL FOR [Captain Ironhill] --


function spell0_2304(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2304', 5343, 1)
end

function spell1_2304(pUnit, Event) --@Stoneform,Self--
pUnit:FullCastSpellOnTarget(7020,pUnit)
pUnit:RegisterEvent('Sorts_2304', 15000, 1)
end

function Sorts_2304(pUnit, Event)
local choix_sorts_2304 = math.random(0, 1)
if choix_sorts_2304 == 0 then
pUnit:RegisterEvent('spell0_2304', 1, 1)
end
if choix_sorts_2304 == 1 then
pUnit:RegisterEvent('spell1_2304', 1, 1)
end
end

function mob2304_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2304', math.random(1500, 3000), 1)
end

function mob2304_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2304_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2304_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2304, 1, 'mob2304_Action')
RegisterUnitEvent(2304, 2, 'mob2304_Leave')
RegisterUnitEvent(2304, 3, 'mob2304_Kill')
RegisterUnitEvent(2304, 4, 'mob2304_Die')
